﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
                    xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
                    xmlns:Telerik_Windows_Controls_OutlookBar="clr-namespace:Telerik.Windows.Controls.OutlookBar;assembly=Telerik.Windows.Controls.Navigation"
                    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                    xmlns:Telerik_Windows_Controls_TabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation"
                    xmlns:Controls="clr-namespace:Rio.Framework.Pages.Controls;assembly=Rio.Framework.Pages">

    <Style x:Key="LabelControleDocumentStyle"
           TargetType="TextBlock">
        <Setter Property="Margin"
                Value="5,10,15,0" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="TextWrapping"
                Value="Wrap" />
    </Style>

    <Style x:Key="TextBoxControleDocumentStyle"
           TargetType="TextBox">
        <Setter Property="Margin"
                Value="5,0,15,0" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="TextWrapping"
                Value="Wrap" />
    </Style>
    <SolidColorBrush x:Key="OutlookBar_HeaderOuterBorder"
                     Color="#9098a3" />
    <LinearGradientBrush x:Key="OutlookBar_HeaderBackground"
                         StartPoint="0 0"
                         EndPoint="0 1">
        <GradientStop Offset="0"
                      Color="#f6f6f7" />
        <GradientStop Offset="1"
                      Color="#dadce0" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="OutlookBar_HeaderInnerBorder"
                     Color="#FFFFFF" />
    <Thickness x:Key="OutlookBar_HeaderInnerBorder_Thickness">1</Thickness>
    <SolidColorBrush x:Key="ControlForeground_Normal"
                     Color="#FF000000" />
    <telerik:Office_BlackTheme x:Key="Theme" />
    <SolidColorBrush x:Key="ControlElement_Normal"
                     Color="#FF000000" />
    <SolidColorBrush x:Key="ControlElement_MouseOver"
                     Color="#FF000000" />
    <SolidColorBrush x:Key="ControlElement_Pressed"
                     Color="#FF000000" />
    <SolidColorBrush x:Key="ControlElement_Disabled"
                     Color="#FF8D8D8D" />

    <Style TargetType="telerik:RadToggleButton"
           x:Key="MinimizeButtonStyle">
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="BorderBrush"
                Value="Transparent" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="Foreground"
                Value="{StaticResource ControlForeground_Normal}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="Padding"
                Value="3" />
        <Setter Property="CornerRadius"
                Value="0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadToggleButton">
                    <Grid>

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                       Storyboard.TargetProperty="Fill"
                                                                       Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_MouseOver}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                       Storyboard.TargetProperty="Fill"
                                                                       Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_Pressed}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                       Storyboard.TargetProperty="Fill"
                                                                       Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_Disabled}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetName="directionRotation"
                                                         Storyboard.TargetProperty="Angle"
                                                         To="-90"
                                                         Duration="0" />
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="arrow"
                                                                       Storyboard.TargetProperty="Fill"
                                                                       Duration="0">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_Pressed}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked" />
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused" />
                                <VisualState x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>


                        <Telerik_Windows_Controls_Chromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}"
                                                                       Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
                                                                       BorderBrush="{Binding BorderBrush, RelativeSource={RelativeSource TemplatedParent}}"
                                                                       BorderThickness="{Binding BorderThickness, RelativeSource={RelativeSource TemplatedParent}}"
                                                                       RenderEnabled="{TemplateBinding IsEnabled}"
                                                                       RenderNormal="False"
                                                                       RenderMouseOver="{TemplateBinding IsMouseOver}"
                                                                       RenderPressed="{TemplateBinding IsPressed}"
                                                                       RenderFocused="False"
                                                                       RenderChecked="{TemplateBinding IsChecked}"
                                                                       CornerRadius="{TemplateBinding CornerRadius}" />

                        <Path x:Name="arrow"
                              Fill="{StaticResource ControlElement_Normal}"
                              Width="8"
                              Height="4"
                              Stretch="None"
                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                              Margin="{TemplateBinding Padding}"
                              Data="M0,0 L0.67,0 4,2.67 7.25,0 8,0 8,0.67 4,4 0,0.75 z"
                              RenderTransformOrigin="0.5,0.5">
                            <Path.RenderTransform>
                                <RotateTransform x:Name="directionRotation"
                                                 Angle="90" />
                            </Path.RenderTransform>
                        </Path>
                    </Grid>

                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


    <Controls:ItemNameToOutlookBarItem x:Key="ItemNameToOutlookBarItem" />

    <SolidColorBrush x:Key="OutlookBar_Footer_OuterItemBorderBrush"
                     Color="#9098a3" />
    <Thickness x:Key="OutlookBar_OuterBorderThickness">0 1 0 0</Thickness>
    <LinearGradientBrush x:Key="OutlookBar_Footer_BackgroundItem"
                         StartPoint="0 0"
                         EndPoint="0 1">
        <GradientStop Color="#FFDFDFDF"
                      Offset="1" />
        <GradientStop Color="#FFC2C2C2"
                      Offset="0.43" />
        <GradientStop Color="#FFBABABA" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="OutlookBar_Footer_InnerItemBorderBrush"
                     Color="#fefefe" />
    <Thickness x:Key="OutlookBar_InnerBorderThickness">1</Thickness>
    <CornerRadius x:Key="SplitButton_SpanCornerRadius">1</CornerRadius>
    <Thickness x:Key="MenuSubItemMargin">2</Thickness>
    <!--	
			**************************
					MenuItem
			************************** 
	-->
    <Style TargetType="telerik:RadMenuItem"
           x:Key="MenuItemStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadMenuItem">
                    <Grid>
                        <Border Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}" />
                        <Grid Margin="{StaticResource MenuSubItemMargin}">
                            <Telerik_Windows_Controls_Chromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}"
                                                                           Grid.ColumnSpan="3"
                                                                           RenderNormal="False"
                                                                           CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
                                                                           RenderHighlighted="{TemplateBinding IsHighlighted}" />
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid Width="{Binding Menu.IconColumnWidth, RelativeSource={RelativeSource TemplatedParent}}">
                                    <Image Grid.Column="0"
                                           Margin="2 2 10 2"
                                           Height="14"
                                           Source="{TemplateBinding Icon}" />
                                </Grid>
                                <ContentPresenter   Grid.Column="1"
                                                    Margin="{TemplateBinding Padding}"
                                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                    Content="{TemplateBinding Header}"
                                                    ContentTemplate="{TemplateBinding HeaderTemplate}" />
                            </Grid>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <CornerRadius x:Key="ControlOuterBorder_CornerRadius">1</CornerRadius>
    <!--	
			*******************************
					OVERFLOW BUTTON
			*******************************
	-->
    <Style TargetType="ToggleButton"
           x:Key="OutlookFooterToggleButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ToggleButton">
                    <Border x:Name="ControlBorder"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            Background="{TemplateBinding Background}"
                            Padding="{TemplateBinding Padding}">

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver" />
                                <VisualState x:Name="Pressed" />
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked" />
                                <VisualState x:Name="Unchecked" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Grid>
                            <Telerik_Windows_Controls_Chromes:ButtonChrome telerik:StyleManager.Theme="{StaticResource Theme}"
                                                                           RenderNormal="False"
                                                                           RenderEnabled="{TemplateBinding IsEnabled}"
                                                                           RenderMouseOver="{TemplateBinding IsMouseOver}"
                                                                           RenderPressed="{TemplateBinding IsPressed}"
                                                                           RenderChecked="{TemplateBinding IsChecked}"
                                                                           CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" />
                            <ContentPresenter Content="{TemplateBinding Content}"
                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Padding"
                Value="0" />
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="Background"
                Value="Transparent" />
    </Style>
    <SolidColorBrush Color="#f4f4f5"
                     x:Key="OutlookBar_MinimizedContentButton_Background_Normal" />
    <LinearGradientBrush x:Key="OutlookBar_MinimizedContentButton_Background_MouseOver"
                         EndPoint="1,0.5"
                         StartPoint="0,0.5">
        <GradientStop Color="#FFFFFBA3"
                      Offset="1" />
        <GradientStop Color="#FFFFFBDA"
                      Offset="0" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="OutlookBar_MinimizedContentButton_Background_Pressed"
                         EndPoint="1,0.5"
                         StartPoint="0,0.5">
        <GradientStop Color="#FFFCE79F"
                      Offset="1" />
        <GradientStop Color="#FFFDD3A8" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder"
                     Color="#FF848484" />
    <SolidColorBrush x:Key="ControlBackground"
                     Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="ControlElement_Active"
                     Color="#FF000000" />



    <Style TargetType="telerik:RadDropDownButton"
           x:Key="MinimizedContentButtonStyle">
        <Setter Property="IsOpen"
                Value="false" />
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="BorderBrush"
                Value="Transparent" />
        <Setter Property="Background"
                Value="{StaticResource OutlookBar_MinimizedContentButton_Background_Normal}" />
        <Setter Property="Foreground"
                Value="{StaticResource ControlForeground_Normal}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="Padding"
                Value="3" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadDropDownButton">
                    <Grid>

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="MouseOverVisual"
                                                         To="1"
                                                         Duration="0" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimation Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="PressedVisual"
                                                         To="1"
                                                         Duration="0" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>

                                        <DoubleAnimation Storyboard.TargetName="Content"
                                                         Storyboard.TargetProperty="Opacity"
                                                         To="0.5"
                                                         Duration="0" />
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_Disabled}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="IsOpenState">
                                <VisualState x:Name="Closed" />
                                <VisualState x:Name="Opened">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         Storyboard.TargetName="CheckedVisual"
                                                         Storyboard.TargetProperty="Opacity"
                                                         To="1" />
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="Fill">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{StaticResource ControlElement_Active}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="DropDownButtonPosition">
                                <VisualState x:Name="DropDownButtonAtLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="0" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="0" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="2" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="DropDownButtonAtBottom">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Column)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="1" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="(Grid.Row)">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="2" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="PopupPlacementState">
                                <VisualState x:Name="PlacementBottom" />
                                <VisualState x:Name="PlacementTop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="180" />
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="PlacementLeft">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="90" />
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="PlacementRight">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator"
                                                                       Storyboard.TargetProperty="RenderTransform">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <TransformGroup>
                                                        <RotateTransform Angle="-90" />
                                                    </TransformGroup>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused" />
                                <VisualState x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>


                        <!-- normal-->
                        <Border Background="{TemplateBinding Background}"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}" />

                        <!-- Hover -->
                        <Border x:Name="MouseOverVisual"
                                Opacity="0"
                                Background="{StaticResource OutlookBar_MinimizedContentButton_Background_MouseOver}" />

                        <!-- pressed -->
                        <Border x:Name="PressedVisual"
                                Opacity="0"
                                Background="{StaticResource OutlookBar_MinimizedContentButton_Background_Pressed}" />

                        <!-- checked -->
                        <Border x:Name="CheckedVisual"
                                Opacity="0"
                                Background="{StaticResource OutlookBar_MinimizedContentButton_Background_Pressed}" />

                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <ContentPresenter x:Name="Content"
                                              Grid.Row="1"
                                              Grid.Column="1"
                                              Margin="{TemplateBinding Padding}"
                                              Content="{TemplateBinding Content}"
                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                            <Path x:Name="DropDownIndicator"
                                  Grid.Row="2"
                                  Grid.Column="1"
                                  IsHitTestVisible="False"
                                  Visibility="{TemplateBinding DropDownIndicatorVisibility}"
                                  Fill="{StaticResource ControlElement_Normal}"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  RenderTransformOrigin="0.5,0.5"
                                  Margin="5,3,5,3"
                                  Data="M0,0 L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" />

                        </Grid>
                        <Popup x:Name="DropDownPopup">
                            <Grid>
                                <Border x:Name="DropDownPopupBorder"
                                        BorderBrush="{StaticResource ControlOuterBorder}"
                                        Background="{StaticResource ControlBackground}"
                                        BorderThickness="1"
                                        CornerRadius="{TemplateBinding CornerRadius}"
                                        Margin="0,1,4,4"
                                        MinWidth="3"
                                        MinHeight="3"
                                        Width="{TemplateBinding DropDownWidth}"
                                        Height="{TemplateBinding DropDownHeight}"
                                        MaxWidth="{TemplateBinding DropDownMaxWidth}"
                                        MaxHeight="{TemplateBinding DropDownMaxHeight}">
                                    <ContentPresenter x:Name="DropDownPopupContent"
                                                      Content="{TemplateBinding DropDownContent}"
                                                      ContentTemplate="{TemplateBinding DropDownContentTemplate}"
                                                      HorizontalAlignment="Stretch"
                                                      VerticalAlignment="Stretch"
                                                      DataContext="{Binding DataContext, RelativeSource={RelativeSource TemplatedParent}}" />
                                </Border>
                            </Grid>
                        </Popup>

                    </Grid>


                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



    <Telerik_Windows_Controls_OutlookBar:ResizerAlignmentToHorizontalAlignmentConverter x:Key="AlignmentConverter" />

    <ControlTemplate x:Key="RadOutlookBarControlTemplate"
                     TargetType="telerik:RadOutlookBar">
        <Grid x:Name="LayoutRoot">

            <VisualStateManager.VisualStateGroups>
                <VisualStateGroup x:Name="DropDownDisplayStates">
                    <VisualState x:Name="DropDownButtonVisible">
                        <Storyboard />
                    </VisualState>
                    <VisualState x:Name="DropDownButtonCollapsed">
                        <Storyboard />
                    </VisualState>
                </VisualStateGroup>
                <VisualStateGroup x:Name="MinimizedModeStates">
                    <VisualState x:Name="Restored">
                        <Storyboard>
                            <DoubleAnimation Duration="0"
                                             Storyboard.TargetName="ContentElement"
                                             Storyboard.TargetProperty="(UIElement.Opacity)"
                                             From="0"
                                             To="1" />
                            <DoubleAnimation Duration="0"
                                             Storyboard.TargetName="TitleElement"
                                             Storyboard.TargetProperty="(UIElement.Opacity)"
                                             From="0"
                                             To="1" />
                        </Storyboard>
                    </VisualState>
                    <VisualState x:Name="Minimized">
                        <Storyboard>
                            <DoubleAnimation Duration="0"
                                             Storyboard.TargetName="TitleElement"
                                             Storyboard.TargetProperty="(UIElement.Opacity)"
                                             From="1"
                                             To="0" />
                        </Storyboard>
                    </VisualState>
                </VisualStateGroup>
            </VisualStateManager.VisualStateGroups>

            <Border BorderBrush="{TemplateBinding BorderBrush}"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{TemplateBinding Background}"
                    x:Name="RootElement">

                <telerik:RadDockPanel>


                    <Border BorderThickness="1"
                            BorderBrush="{StaticResource OutlookBar_HeaderOuterBorder}"
                            Background="{StaticResource OutlookBar_HeaderBackground}"
                            Margin="-1"
                            telerik:RadDockPanel.Dock="Top"
                            Visibility="{TemplateBinding HeaderVisibility}">
                        <Border BorderThickness="{StaticResource OutlookBar_HeaderInnerBorder_Thickness}"
                                BorderBrush="{StaticResource OutlookBar_HeaderInnerBorder}">
                            <Grid>
                                <ContentControl x:Name="TitleElement"
                                                HorizontalContentAlignment="Stretch"
                                                VerticalContentAlignment="Stretch"
                                                Margin="5 3 5 3"
                                                IsTabStop="False"
                                                ContentTemplate="{TemplateBinding TitleTemplate}" />
                                <telerik:RadToggleButton x:Name="MinimizeButton"
                                                         Margin="0 0 3 0"
                                                         HorizontalAlignment="Right"
                                                         Width="19"
                                                         Height="19"
                                                         Style="{StaticResource MinimizeButtonStyle}"
                                                         VerticalAlignment="Center"
                                                         IsChecked="{Binding IsMinimized, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                                         Visibility="{Binding IsMinimizable, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}">
                                    <i:Interaction.Triggers>
                                        <i:EventTrigger EventName="Click">
                                            <i:InvokeCommandAction CommandParameter="{Binding IsChecked, ElementName=MinimizeButton}"
                                                                   Command="{Binding MinimizeControlToolbarCommand, ElementName=UCSearchPanel}" />
                                        </i:EventTrigger>
                                    </i:Interaction.Triggers>
                                </telerik:RadToggleButton>
                            </Grid>
                        </Border>
                    </Border>
                    <Border Visibility="{TemplateBinding MinimizedAreaVisibility}"
                            telerik:RadDockPanel.Dock="Bottom"
                            BorderThickness="{StaticResource OutlookBar_OuterBorderThickness}"
                            BorderBrush="{StaticResource OutlookBar_Footer_OuterItemBorderBrush}"
                            MinHeight="{TemplateBinding MinimizedAreaMinHeight}"
                            Background="{StaticResource OutlookBar_Footer_BackgroundItem}">
                        <Border Padding="0 2"
                                BorderThickness="{StaticResource OutlookBar_InnerBorderThickness}"
                                BorderBrush="{StaticResource OutlookBar_Footer_InnerItemBorderBrush}">

                            <telerik:RadDockPanel HorizontalAlignment="Right">
                                <ToggleButton x:Name="DropDownButtonElement"
                                              MinWidth="15"
                                              telerik:RadDockPanel.Dock="Right"
                                              Style="{StaticResource OutlookFooterToggleButton}"
                                              IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
                                    <ToolTipService.ToolTip>
                                        <TextBlock Text="Configure buttons"
                                                   telerik:LocalizationManager.ResourceKey="OutlookBarConfigureButtons" />
                                    </ToolTipService.ToolTip>
                                    <telerik:RadContextMenu.ContextMenu>
                                        <Telerik_Windows_Controls_TabControl:DropDownMenu x:Name="DropDownMenuElement"
                                                                                          StaysOpen="False"
                                                                                          Placement="Bottom"
                                                                                          Style="{TemplateBinding DropDownStyle}"
                                                                                          ItemTemplate="{TemplateBinding ItemDropDownContentTemplate}"
                                                                                          ItemTemplateSelector="{TemplateBinding ItemDropDownContentTemplateSelector}"
                                                                                          DisplayMemberPath="{TemplateBinding DropDownDisplayMemberPath}"
                                                                                          ItemContainerStyle="{StaticResource MenuItemStyle}" />
                                    </telerik:RadContextMenu.ContextMenu>
                                    <Path Data="M0,0 L5,0 3,3 0,0"
                                          Fill="{StaticResource ControlElement_Normal}"
                                          Width="5"
                                          Height="3" />
                                </ToggleButton>
                                <Telerik_Windows_Controls_OutlookBar:MinimizedOutlookBarArea IsTabStop="False"
                                                                                             x:Name="MinimizedAreaControl"
                                                                                             telerik:RadDockPanel.Dock="Right" />

                            </telerik:RadDockPanel>


                        </Border>
                    </Border>
                    <ItemsPresenter telerik:RadDockPanel.Dock="Bottom"
                                    x:Name="ItemsPresenterElement" />

                    <Thumb x:Name="HorizontalSplitter"
                           telerik:RadDockPanel.Dock="Bottom"
                           Style="{TemplateBinding HorizontalSplitterStyle}">
                        <ToolTipService.ToolTip>
                            <TextBlock Text="Start dragging in order to change items' position"
                                       telerik:LocalizationManager.ResourceKey="OutlookBarHorizontalSplitter" />
                        </ToolTipService.ToolTip>

                    </Thumb>


                    <Grid>
                        <ContentPresenter x:Name="ContentElement"
                                          ContentTemplate="{TemplateBinding SelectedContentTemplate}"
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          Margin="{TemplateBinding Padding}" />

                        <telerik:RadDropDownButton DropDownIndicatorVisibility="Collapsed"
                                                   x:Name="MinimizedContentElement"
                                                   Style="{StaticResource MinimizedContentButtonStyle}"
                                                   Visibility="{Binding IsMinimized, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                                                   DropDownPlacement="Right"
                                                   Padding="4 0 0 0"
                                                   Margin="0 1 0 0">
                            <telerik:RadDropDownButton.DropDownContent>
                                <Grid>
                                    <ContentPresenter x:Name="MinimizedContentPresenter"
                                                      ContentTemplate="{TemplateBinding SelectedContentTemplate}" />
                                    <Thumb x:Name="PopupResizer"
                                           VerticalAlignment="Stretch"
                                           Cursor="SizeWE"
                                           Opacity="0"
                                           HorizontalAlignment="Right"
                                           Width="2" />
                                </Grid>
                            </telerik:RadDropDownButton.DropDownContent>
                            <telerik:LayoutTransformControl>
                                <telerik:LayoutTransformControl.LayoutTransform>
                                    <RotateTransform Angle="-90" />
                                </telerik:LayoutTransformControl.LayoutTransform>
                                <ContentPresenter Content="{TemplateBinding MinimizedButtonContent}"
                                                  ContentTemplate="{TemplateBinding MinimizedButtonContentTemplate}" />
                            </telerik:LayoutTransformControl>
                        </telerik:RadDropDownButton>
                    </Grid>

                </telerik:RadDockPanel>


            </Border>

            <Thumb x:Name="VerticalResizer"
                   Opacity="0"
                   Visibility="{Binding IsVerticalResizerVisible, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}}"
                   Cursor="SizeWE"
                   VerticalAlignment="Stretch"
                   Width="2"
                   HorizontalAlignment="{Binding VerticalResizerAlignment, Converter={StaticResource AlignmentConverter}, RelativeSource={RelativeSource TemplatedParent}}">
                <ToolTipService.ToolTip>
                    <TextBlock Text="Start dragging in order to resize the outlookbar"
                               telerik:LocalizationManager.ResourceKey="OutlookBarVerticalResizer" />
                </ToolTipService.ToolTip>
            </Thumb>
        </Grid>

    </ControlTemplate>
    
    <SolidColorBrush x:Key="ControlItem_InnerBorder_Normal"
                     Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="ControlItem_OuterBorder_MouseOver"
                     Color="#FFFFC92B" />
    <SolidColorBrush x:Key="ControlItem_InnerBorder_MouseOver"
                     Color="#FFFFFFFF" />
    <LinearGradientBrush x:Key="ControlItem_Background_MouseOver"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="#FFFFFBA3"
                      Offset="1" />
        <GradientStop Color="#FFFFFBDA"
                      Offset="0" />
        <GradientStop Color="#FFFFD25A"
                      Offset="0.43" />
        <GradientStop Color="#FFFEEBAE"
                      Offset="0.42" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ControlItem_OuterBorder_Selected"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="#FF282828" />
        <GradientStop Color="#FF5F5F5F"
                      Offset="1" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ControlItem_InnerBorder_Selected"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="#FFB69A78" />
        <GradientStop Color="#FFFFE17A"
                      Offset="0.126" />
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="ControlItem_Background_Selected"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="#FFFFD74E"
                      Offset="0.996" />
        <GradientStop Color="#FFFFDCAB"
                      Offset="0.17" />
        <GradientStop Color="#FFFFB062"
                      Offset="0.57" />
        <GradientStop Color="#FFFFD18F"
                      Offset="0.56" />
        <GradientStop Color="#FFFFBA74" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="ControlOuterBorder_Disabled"
                     Color="#FF989898" />
    <SolidColorBrush x:Key="ControlInnerBorder_Disabled"
                     Color="Transparent" />
    <SolidColorBrush x:Key="ControlBackground_Disabled"
                     Color="#FFE0E0E0" />
    <SolidColorBrush x:Key="ControlItem_OuterBorder_Normal"
                     Color="#FF848484" />
    <LinearGradientBrush x:Key="ControlItem_Background_Normal"
                         EndPoint="0.5,1"
                         StartPoint="0.5,0">
        <GradientStop Color="White" />
        <GradientStop Color="Gainsboro"
                      Offset="0.43" />
        <GradientStop Color="#FFADADAD"
                      Offset="0.44" />
        <GradientStop Color="#FFD4D4D4"
                      Offset="1" />
    </LinearGradientBrush>
    <Style x:Key="RadOutlookBarItemStyle"
           TargetType="telerik:RadOutlookBarItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:RadOutlookBarItem">
                    <Grid x:Name="wrapper">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStateGroup">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="SelectVisual" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="MouseOverVisual" />
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="DisabledVisual" />
                                        <ColorAnimation Duration="0"
                                                        To="#FFB4B4B4"
                                                        Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)"
                                                        Storyboard.TargetName="grid" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Margin="-1 0 -1 -1">
                            <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Normal}"
                                    BorderThickness="1"
                                    Background="{TemplateBinding Background}" />
                        </Border>
                        <Border x:Name="MouseOverVisual"
                                BorderBrush="{StaticResource ControlItem_OuterBorder_MouseOver}"
                                BorderThickness="1"
                                Margin="-1 0 -1 -1"
                                Opacity="0">
                            <Border BorderBrush="{StaticResource ControlItem_InnerBorder_MouseOver}"
                                    BorderThickness="1"
                                    Background="{StaticResource ControlItem_Background_MouseOver}" />
                        </Border>
                        <Border x:Name="SelectVisual"
                                BorderBrush="{StaticResource ControlItem_OuterBorder_Selected}"
                                BorderThickness="1"
                                Margin="-1 0 -1 -1"
                                Opacity="0">
                            <Border BorderBrush="{StaticResource ControlItem_InnerBorder_Selected}"
                                    BorderThickness="1"
                                    Background="{StaticResource ControlItem_Background_Selected}" />
                        </Border>
                        <Border x:Name="DisabledVisual"
                                BorderBrush="{StaticResource ControlOuterBorder_Disabled}"
                                BorderThickness="1"
                                Margin="-1 0 -1 -1"
                                Opacity="0">
                            <Border BorderBrush="{StaticResource ControlInnerBorder_Disabled}"
                                    BorderThickness="1"
                                    Background="{StaticResource ControlBackground_Disabled}" />
                        </Border>
                        <Grid x:Name="grid"
                              Margin="{TemplateBinding Padding}"
                              Background="#00B4B4B4">
                            <telerik:RadDockPanel>
                                <Image telerik:RadDockPanel.Dock="Left"
                                       Source="{TemplateBinding Icon}"
                                       Stretch="None"
                                       VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                <ContentControl x:Name="HeaderElement"
                                                ContentTemplate="{TemplateBinding HeaderTemplate}"
                                                Content="{TemplateBinding Header}"
                                                Foreground="{TemplateBinding Foreground}"
                                                FontWeight="{TemplateBinding FontWeight}"
                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                IsTabStop="False"
                                                Margin="3 0 0 0"
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                            </telerik:RadDockPanel>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderBrush"
                Value="{StaticResource ControlItem_OuterBorder_Normal}" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="Foreground"
                Value="{StaticResource ControlForeground_Normal}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Padding"
                Value="3" />
        <Setter Property="FontWeight"
                Value="Normal" />
        <Setter Property="Background"
                Value="{StaticResource ControlItem_Background_Normal}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Left" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
    </Style>
    
    
    
    <!-- ******Brush STYLES****** -->
    <!-- **************************** -->
    <LinearGradientBrush x:Key="NavigationBackgroundColorBrush" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF294890" Offset="0.022"/>
        <GradientStop Color="#499ED5" Offset="0.536"/>
        <GradientStop Color="#FF255D96" Offset="0.728"/>
    </LinearGradientBrush>

    <Style x:Key="MainBackgroundStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="#FF2A71CB"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="CornerRadius" Value="8"/>
    </Style>


    <!-- ***********Panel Left *********** -->
    <!-- ********************************* -->
    <Style x:Key="headerPanelLefBodertStyle" TargetType="Border">
        <Setter Property="BorderBrush" Value="#FF2A71CB"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="CornerRadius" Value="8"/>
    </Style>

    <!-- ***********Index control*********** -->
    <Style x:Key="LabelIndexStyle" TargetType="TextBlock">
        <Setter Property="Margin" Value="5,5,5,0"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
    </Style>

    <Style x:Key="ButtonValidateHelpStyle" TargetType="Button">
        <Setter Property="Width" Value="25"/>
        <Setter Property="Margin" Value="0,0,5,0"/>
        <Setter Property="BorderBrush">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF73BDEB"/>
                    <GradientStop Color="#FF4B6E83" Offset="1"/>
                    <GradientStop Color="#FF2D8FBA" Offset="0.513"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness" Value="1.5"/>
    </Style>


    <!-- ***********Panel Right *********** -->
    <!-- ********************************* -->

    <!-- *************GridView************ -->
    <!-- ********************************* -->
    <Style TargetType="telerik:RadGridView" x:Key="GridViewStyle">
        <Setter Property="GroupPanelBackground" Value="{StaticResource NavigationBackgroundColorBrush}"/>
        <Setter Property="GroupPanelForeground" Value="#FFFFFFFF"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Margin" Value="2,5,2,5"/>
        <Setter Property="ColumnWidth" Value="*"/>
        <Setter Property="CanUserReorderColumns" Value="True"/>
        <Setter Property="CanUserResizeColumns" Value="True"/>
        <Setter Property="CanUserSortColumns" Value="True"/>
        <Setter Property="CanUserInsertRows" Value="False"/>
        <Setter Property="CanUserDeleteRows" Value="False"/>
        <Setter Property="GridLinesVisibility" Value="None"/>
    </Style>

    <!-- ****GridViewRow Tooltip elements ****** -->
    <!-- ********************************************* -->

    <LinearGradientBrush x:Key="GridViewRowSelectedBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFCA5D" Offset="1"/>
        <GradientStop Color="#FFFFDC9C" Offset="0"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GridViewInvalidBackground" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFCDCDC"/>
        <GradientStop Color="#FFFCC1C1" Offset="1"/>
    </LinearGradientBrush>
    <LinearGradientBrush x:Key="GridViewIndicatorsPartsFill" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FF000000" Offset="0"/>
        <GradientStop Color="#FF000000" Offset="1"/>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="GridViewRowIndicatorBackground" Color="#FFDBDEE1" />
    <SolidColorBrush x:Key="GridViewRowNormalBackground" Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="GridLinesFill" Color="#FFB3B3B3" />
    <SolidColorBrush x:Key="GridViewForeground" Color="#FF000000" />

    <telerik:BooleanToOpacityConverter x:Key="BooleanToOpacityConverter" />
    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
    <telerik:GridLineWidthToThicknessConverter x:Key="GridLineWidthToThicknessConverter" />
    
    <Style x:Key="ToolTipStyle" TargetType="ToolTip">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ToolTip">
                    <Border x:Name="Root" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2">
                        <Border Background="{TemplateBinding Background}" BorderThickness="1" CornerRadius="1" Padding="{TemplateBinding Padding}">
                            <Border.Resources>
                                <Storyboard x:Key="Visible State"/>
                                <Storyboard x:Key="Normal State"/>
                            </Border.Resources>
                            <ContentPresenter Cursor="{TemplateBinding Cursor}" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
  
    <Style x:Key="RowsDetailsStyle" TargetType="Grid">
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF404955" Offset="0"/>
                    <GradientStop Color="#FF8EA7CB" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
